.website-list {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background: var(--sidebar-background);
  padding: 1rem;
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  max-height: 100vh;
  position: sticky;
  top: 0;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background-color: var(--card-background);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.filter-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.filter-header h3 {
  margin: 0;
  color: var(--text-color);
  font-weight: 600;
}

.toggle-icon {
  font-weight: bold;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.filter-header:hover .toggle-icon {
  transform: scale(1.1);
}

.filter-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.filter-section li {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: var(--text-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.filter-section li:hover,
.filter-section li.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, #6a11cb 100%);
  color: white;
  transform: translateX(5px);
}

.category-count {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  padding: 0.1rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  min-width: 24px;
  text-align: center;
}

.filter-section li.active .category-count {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* 影视推荐切换按钮 */
.movie-toggle-btn {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.movie-toggle-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.movie-toggle-btn:active {
  transform: translateY(-1px);
}

/* 管理员添加网站按钮 */
.admin-add-website {
  padding: 0 1rem 1rem 1rem;
}

.add-website-btn {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.add-website-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.add-website-btn:active {
  transform: translateY(-1px);
}

.add-website-btn span {
  font-size: 1.2rem;
}

.main-content {
  flex: 1;
  padding: 2rem;
  background-color: var(--background-color);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--text-color);
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-title h1 {
  margin: 0;
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.8rem;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* 主题切换滑动按钮样式 */
.theme-toggle-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  padding: 0.25rem;
  background: var(--card-background);
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.theme-label {
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 15px;
}

.light-theme-label {
  color: #555;
}

.dark-theme-label {
  color: #e0e0e0;
}

.theme-toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
  background: linear-gradient(135deg, #3d85c6 0%, #2a5aa8 100%);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  padding: 0 2px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.theme-toggle-switch.dark-theme {
  background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
}

.theme-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sun-icon {
  transform: translateX(0);
}

.moon-icon {
  transform: translateX(30px) rotate(360deg);
}

/* 滑动动画 */
.slide-fade-enter-active {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.slide-fade-leave-active {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.slide-fade-enter-from {
  transform: translateX(30px) rotate(180deg);
  opacity: 0;
}

.slide-fade-leave-to {
  transform: translateX(-30px) rotate(-180deg);
  opacity: 0;
}

.admin-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login-btn,
.logout-btn {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #a8e6cf 0%, #8fd3b5 100%);
  color: #333;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.login-btn:hover,
.logout-btn:hover {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.admin-actions-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-status .admin-badge,
.user-status .guest-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-status .admin-badge {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  color: #212529;
}

.user-status .guest-badge {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  color: white;
}

.sorting {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  background: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sorting span {
  font-weight: 600;
}

.sorting select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--card-background);
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.sorting select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(61, 133, 198, 0.2);
}

.current-category {
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--card-background);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-left: 4px solid var(--primary-color);
}

.category-tag {
  background: linear-gradient(135deg, var(--category-bg) 0%, #6a11cb 100%);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.clear-category {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.clear-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.websites-grid {
  margin-bottom: 2rem;
}

.websites-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.website-card {
  background: var(--card-background);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  transform: translateY(0);
  border: 1px solid var(--border-color);
}

.website-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.website-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.website-card h2 a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.website-card h2 a:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

.description {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  padding: 0.75rem 0;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
}

.category {
  background: linear-gradient(135deg, var(--category-bg) 0%, #6a11cb 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.created-at {
  color: var(--text-secondary);
  font-weight: 500;
}

.admin-actions-card {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.admin-actions-card button {
  flex: 1;
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.edit-btn {
  background: linear-gradient(135deg, #a8e6cf 0%, #8fd3b5 100%);
  color: #333;
}

.edit-btn:hover {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.delete-btn {
  background: linear-gradient(135deg, #ff7373 0%, #ff5454 100%);
  color: #333;
}

.delete-btn:hover {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 4rem;
  color: var(--text-secondary);
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.empty-state p {
  font-size: 1.3rem;
  font-weight: 500;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.pagination-btn {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #a8e6cf 0%, #8fd3b5 100%);
  color: #333;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pagination-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.pagination-btn:disabled {
  background: linear-gradient(135deg, #ccc 0%, #bbb 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.page-numbers {
  display: flex;
  gap: 0.5rem;
}

.page-number {
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border-color);
  background: var(--card-background);
  color: var(--text-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.page-number.active {
  background: linear-gradient(135deg, #a8e6cf 0%, #8fd3b5 100%);
  color: #333;
  border-color: #a8e6cf;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.page-number:hover:not(.active) {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.pagination-info {
  margin-left: 1.5rem;
}

.page-info {
  color: var(--text-color);
  font-weight: 600;
  white-space: nowrap;
  background: var(--card-background);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 模态框样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalAppear 0.3s ease-out;
  border: 1px solid var(--border-color);
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-content h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.modal-actions button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.modal-actions button:first-child {
  background: linear-gradient(135deg, #a8e6cf 0%, #8fd3b5 100%);
  color: #333;
}

.modal-actions button:first-child:hover {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-actions button:last-child {
  background: linear-gradient(135deg, #ccc 0%, #bbb 100%);
  color: #333;
}

.modal-actions button:last-child:hover {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-sizing: border-box;
  background-color: var(--card-background);
  color: var(--text-color);
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05), 0 0 0 2px rgba(61, 133, 198, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder {
  color: #999;
}

.error {
  color: #dc3545;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  padding: 0.75rem;
  background-color: rgba(220, 53, 69, 0.1);
  border-radius: 8px;
}

/* 动画效果 */
.slide-enter-active, .slide-leave-active {
  transition: all 0.3s ease;
  max-height: 1000px;
  overflow: hidden;
}

.slide-enter-from, .slide-leave-to {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
}

.fade-enter-active, .fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from, .fade-leave-to {
  opacity: 0;
}

.modal-enter-active, .modal-leave-active {
  transition: opacity 0.3s ease;
}

.modal-enter-from, .modal-leave-to {
  opacity: 0;
}

.modal-enter-active .modal-content,
.modal-leave-active .modal-content {
  transition: all 0.3s ease;
}

.modal-enter-from .modal-content,
.modal-leave-to .modal-content {
  transform: scale(0.8);
  opacity: 0;
}

/* 卡片动画 */
.card-enter-active, .card-leave-active {
  transition: all 0.5s ease;
}

.card-enter-from {
  opacity: 0;
  transform: translateY(30px);
}

.card-leave-to {
  opacity: 0;
  transform: translateY(-30px);
}

.card-move {
  transition: transform 0.5s ease;
}

/* 影视推荐样式 */
.movie-recommendations {
  margin-top: 2rem;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.movie-card {
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  transform: translateY(0);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  background: var(--card-background);
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.movie-title-section {
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--primary-color) 0%, #6a11cb 100%);
  color: white;
}

.movie-image-section {
  width: 100%;
  height: 300px;
  overflow: hidden;
  flex-shrink: 0;
}

.movie-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.movie-info-section {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.movie-info-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.movie-year {
  font-weight: bold;
  color: var(--text-secondary);
}

.movie-rating {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #333;
  padding: 0.1rem 0.5rem;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.9rem;
}

.movie-director {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.movie-tag {
  background: linear-gradient(135deg, var(--category-bg) 0%, #6a11cb 100%);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

.movie-description-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.movie-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-color);
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.movie-toggle-btn {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 0 0 12px 12px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--primary-color) 0%, #6a11cb 100%);
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.movie-toggle-btn:hover {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .website-list {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    max-height: unset;
    position: static;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .header-controls {
    align-self: stretch;
    justify-content: space-between;
    width: 100%;
  }
  
  .pagination {
    flex-direction: column;
    gap: 1rem;
  }
  
  .pagination-info {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .websites-grid-inner,
  .movie-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .filter-section li {
    padding: 1rem;
  }
  
  .current-category {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .modal-content {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .movie-image-section {
    height: 200px;
  }
}